package com.zs.grain.ui

import android.os.Bundle
import com.alibaba.android.arouter.facade.annotation.Route
import com.xnkj1688.semplibrary.mvvm.BaseMvvmFragment
import com.zs.grain.ARouterPath
import com.zs.grain.R
import com.zs.grain.databinding.FragmentMenusBinding
import com.zs.grain.databinding.FragmentTempBinding

@Route(path = ARouterPath.TempFragment)
class TempFragment: BaseMvvmFragment<FragmentTempBinding, TempViewModel>() {
    override val layoutId: Int = R.layout.fragment_temp

    override fun initViewModel(binding: FragmentTempBinding) {
        binding.vm = this.mViewModel
        binding.view = this
    }

    override fun initArguments() {
        var TempType = this.arguments?.getInt("TempType")
        if (TempType != null) mViewModel.init(TempType)
    }

    override fun onResume() {
        super.onResume()
    }

    override fun onUiNotify(name: String, bundle: Bundle) {
        super.onUiNotify(name, bundle)
        when (name) {
            "SwitchUI" -> {
//                var menuNo = bundle.getLong("MenuNo")
//                var activity = this.activity as MainActivity
            }
        }
    }


}